#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <include/pf_arg.h>

int main(int argc, char** argv)
{
    pf_arg_t* p = pf_arg_parse(argc, argv);

    char key[1024];
    char* ch_ptr = NULL; 
    ch_ptr = fgets(key, sizeof(key)-1, stdin);
    if (key[strlen(key) - 1] == '\n')
    {
        key[strlen(key) - 1] = '\0';
    }
    const char* value = pf_arg_find(p, key);
    printf("%s\n", (value != NULL) ? value : "not found");

    pf_arg_clear(p);
    return 0;
}
